    // 版块颜色轮换
    let color_arr = ['top-a','top-b','top-c','top-d'];
    let module_info = document.querySelectorAll('.item,.module-info');
    let module_info_len = module_info.length;
    for(let i = 0;i < module_info_len;i++){
      let j = i % 4;
      module_info[i].className += ' '+color_arr[j];
    }
    let follow = $('b.follow');
    follow.click(function() {
        let hover_tip = $('#hover-tip');
        let that = $(this);
        that.toggleClass('followed');
        $.ajax({
            url: 'ajax/follow.php',
            type: 'GET',
            dataType: 'json',
            data: {w: 'follow',id: that.prop('id')},
        })
        .done(function(data) {
            let msg = data.sign == 'in'?'已关注':'已取关';
            hover_tip.text(msg);
            hover_tip.fadeIn();
            setTimeout(function(){
                hover_tip.fadeOut();
            },1000)
        });
    });